package com.quectel.core.module.grid.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quectel.core.module.grid.entity.GridPlanTaskEntity;
import com.quectel.core.module.grid.vo.TaskTrendStatisticsVo;

import java.util.List;
import java.util.Map;

/**
 * @author bob
 * @email bob.yu@quectel.com
 * @date 2023/02/03 15:45
 */

public interface GridPlanTaskDao extends BaseMapper<GridPlanTaskEntity> {

    /**
     * 查询列表
     *
     * @param params
     * @return
     */
    List<GridPlanTaskEntity> queryList(Map<String, Object> params);

    /**
     * 查询数量
     *
     * @param params
     * @return
     */
    int queryTotal(Map<String, Object> params);

    List<TaskTrendStatisticsVo> countRecordGroupByTime(Map<String, Object> params);
}
